<!doctype html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>{:L('ADMIN_CENTER')}</title>
    <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge"/>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta name="robots" content="noindex,nofollow">
    <link href="__TMPL__Public/assets/css/admin_login.css" rel="stylesheet"/>
    <style>
        #login_btn_wraper {
            text-align: center;
        }

        #login_btn_wraper .tips_success {
            color: #fff;
        }

        #login_btn_wraper .tips_error {
            color: #DFC05D;
        }

        #login_btn_wraper button:focus {
            outline: none;
        }
    </style>
    <script>
        if (window.parent !== window.self) {
            document.write = '';
            window.parent.location.href = window.self.location.href;
            setTimeout(function () {
                document.body.innerHTML = '';
            }, 0);
        }
    </script>

</head>
<body>
<div class="wrap">
    <h1><a>后台管理系统</a></h1>
    <form method="post" name="login" action="{:U('public/dologin')}" autoComplete="off" class="js-ajax-form">
        <div class="login">
            <ul>
                <li>
                    <input class="input" id="js-admin-name" name="username" type="text"
                           placeholder="{:L('USERNAME_OR_EMAIL')}" title="{:L('USERNAME_OR_EMAIL')}"
                           value="{:cookie('admin_username')}" data-rule-required="true" data-msg-required=""/>
                </li>
                <li>
                    <input class="input" id="admin_pwd" type="password" name="password" placeholder="{:L('PASSWORD')}"
                           title="{:L('PASSWORD')}" data-rule-required="true" data-msg-required=""/>
                </li>
                <li class="verifycode-wrapper">
                    {:sp_verifycode_img('length=4&font_size=20&width=248&height=42&use_noise=1&use_curve=0','style="cursor:
                    pointer;" title="点击获取"')}
                </li>
                <li>
                    <input class="input" type="text" name="verify" placeholder="{:L('ENTER_VERIFY_CODE')}"/>
                </li>
            </ul>
            <div id="login_btn_wraper">
                <button type="submit" name="submit" class="btn js-ajax-submit" data-loadingmsg="{:L('LOADING')}">
                    {:L('LOGIN')}
                </button>
            </div>
        </div>
    </form>
</div>

<script>
    var GV = {
        ROOT: "__ROOT__/",
        WEB_ROOT: "__WEB_ROOT__/",
        JS_ROOT: "public/js/"
    };
</script>
<script src="__PUBLIC__/js/wind.js"></script>
<script src="__PUBLIC__/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script>
    (function () {
        document.getElementById('js-admin-name').focus();
    })();
</script>
</body>
</html>
